//*******************************************************************
//  Magazines.java   Author: Tang Caiming
//
//  由Books类派生的杂志类。
//*******************************************************************
public class Magazines extends Books
{
    private int ISSN;  //  杂志刊号

    public Magazines(int numpages, String numbookname,String numauthor,String numpress,String numcopyrightdate,int numISSN)
    {
        super(numpages,numbookname,numauthor,numpress,numcopyrightdate);
        ISSN = numISSN;
    }

    public void setISSN(int ISSN)
    {
        this.ISSN = ISSN;
    }

    public int getISSN()
    {
        return ISSN;
    }

    @Override
    public String toString()
    {
        String result = super.toString() + "\n该杂志刊号为：" + ISSN;
        return result;
    }
}
